/*
*
*运营模块接口
*
*/
angular.module("operateS", ["Common"]).service('operatepathservice', ['Restangular', '$http', '$rootScope', function (Restangular, $http, $rootScope) {
   

    //验证企业名称是否存在
    this.searchOrgByName = function (params) {
        return Restangular.one("Operate").customPOST({ name: "My Message" }, "searchOrgByName", params);
    };

    //验证帐号是否存在
    this.isAccount = function (params) {
        return Restangular.one("ApiUser").customPOST({ name: "My Message" }, "isAccount", params);
    }

    this.findNotice = function (params) {
        return Restangular.one("Operate").customPOST({ name: "My Message" }, "findNotice", params);
    };

    this.addNotice = function (params) {
        return Restangular.one("Operate").customPOST({ name: "My Message" }, "addNotice", params);
    };

    this.updateNotice = function (params) {
        return Restangular.one("Operate").customPOST({ name: "My Message" }, "updateNotice", params);
    };

    this.delNotice = function (params) {
        return Restangular.one("Operate").customPOST({ name: "My Message" }, "delNotice", params);
    };

    // 人员编辑获取
    this.personnelGetKey = function (params) {
        return Restangular.one("/PersonnelManagement").customPOST({ name: "My Message" }, "PersonnelGetKey", params);
    }
    //用户登录
    this.login = function (params) {
        return Restangular.one("ApiUser").customPOST({ name: "My Message" }, "login", params);
    }
} ]);
